package com.tanglongan.designPattern.dp11_flyweight.demo01;

public class Client {
    public static void main(String[] args) {
        ITicket ticket = TicketFactory.queryTicket("北京西", "西安北");
        ticket.showInfo("商务座");

        ITicket ticket2 = TicketFactory.queryTicket("北京西", "西安北");
        ticket2.showInfo("二等座");

    }
}
